<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/center.css" rel="stylesheet" type="text/css"/>
    <link href="__CSS__/usercenter.css" rel="stylesheet" type="text/css"/>
</block>

<block name="body">
    <div class="col-xs-12 usercenter">
        <div class="uc">
            <include file="_top"/>
            <include file="_top_menu"/>

            <div class="row uc_content">
                <div class="col-xs-12">
                    <div class="row uc_tab">
                        <div class="col-xs-12 uc_fans" style="margin-left: 10px;">
                            <ul class="ucenter-tab">
                                <li <eq name="tab" value="following"> class="active"</eq>><a href="{:U('Ucenter/Index/following',array('uid'=>$uid))}">
                                    <if condition="$uid eq is_login()">{:L('_I_')}<else/>Ta</if>{:L('_DE_FOLLOWER_')}</a></li>
                                <li <eq name="tab" value="fans"> class="active"</eq>><a href="{:U('Ucenter/Index/fans',array('uid'=>$uid))}">
                                    <if condition="$uid eq is_login()">{:L('_I_')}<else/>Ta</if>{:L('_DE_FANS_')}</a></li>
                            </ul>

                        </div>
                    </div>
                    <if condition="count($fans) eq 0"><p class="text-muted" style="text-align: center; font-size: 3em;">
                        <br><br>
                        {:L('_FANS_NONE_')}{:L('_WAVE_')}
                        <br><br><br>
                    </p></if>
                    <div class="uc_friend">
                        <ul>
                        <volist name="fans" id="fan">
                            <li <if condition="($i % 2) eq 0">class="last"</if>>
                            <div class="row">
                                <div class="col-xs-3" style="padding-right:0px;width:50px">
                                    <img ucard="{$fan.who_follow}" style="width: 38px" class="avatar-img" src="{$fan.user.avatar128}"/>
                                </div>
                                <div class="col-xs-9">
                                    <div class="pull-left"><a href="{$fan.user.space_url}" ucard="{$fan.who_follow}" style="font-size:14px;">{$fan.user.nickname}</a></div>
                                    <if condition="is_login() && $fan['user']['uid'] != get_uid()">
							            <div class="uc_follow pull-right">
							                {:W('Common/Follow/follow',array('follow_who'=>$fan['user']['uid']))}
							            </div>
							    	</if>
                                    <div class="row clearfix">
                                        
                                        <div class="col-xs-4" style="padding-right:0">
                                            {:L('_FOLLOWERS_')}{:L('_COLON_')}
                                            <span class="c_green">{$fan.user.following}</span>
                                        </div>
                                        <div class="col-xs-4" style="padding-right:0">
                                            {:L('_FANS_')}{:L('_COLON_')}
                                            <span class="c_green">{$fan.user.fans}</span>
                                        </div>
                                        <div class="col-xs-4" style="padding-right:0">
                                            话题{:L('_COLON_')}
                                            <span class="c_green">{$fan.user.postcount}</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            </li>
                        </volist>
                        </ul>
                        <div class="pull-right">
                            {:getPagination($totalCount)}
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</block>

